package utils

import "io"

type ZipReadCloser struct {
	Zip io.ReadCloser
	Low io.ReadCloser
}

func (z *ZipReadCloser) Close() error {
	err := z.Zip.Close()
	if err == nil && z.Low != nil {
		return z.Low.Close()
	}
	return err
}

func (z *ZipReadCloser) Read(p []byte) (n int, err error) {
	return z.Zip.Read(p)
}
